package com.spzx.product.mapper;

/**
 * @Author GQS @Date 2024/9/21/9:31 @Description
 */

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spzx.product.domain.SkuStock;
import org.apache.ibatis.annotations.Param;

/**
 * 商品skuMapper接口
 *
 */
public interface SkuStockMapper extends BaseMapper<SkuStock> {


    SkuStock checkStock(@Param("skuId") Long skuId, @Param("num")Integer num);

    Integer lockStock(@Param("skuId") Long skuId, @Param("num")Integer num);

    Integer unLockStock(@Param("skuId") Long skuId, @Param("num")Integer num);

    Integer minusStock(@Param("skuId") Long skuId, @Param("num")Integer num);
}
